﻿package exercise5;

public class News {
	 private int id;
	    private String name;
	    private String creator;//创建者
	    
	    public int getId() {
			return id;
		}

		public void setId(int id) {
			this.id = id;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public String getCreator() {
			return creator;
		}

		public void setCreator(String creator) {
			this.creator = creator;
		}

		public News(int id,String name,String creator) {
			this.id=id;
			this.name=name;
			this.creator=creator;
		}
}
